//全局项目的过滤器

export const dateFormat = (value, spe = '-') => {
    value = new Date(value) //将value字符串 转换为日期格式
    let year = value.getFullYear()
    let month = value.getMonth() + 1
    let day = value.getDate()
    return `${year}${spe}${month}${spe}${day}`
}